﻿using System;
using System.Collections.Generic;
using AppSocketModel;
using BCGPSCommon;

namespace AppSocketService.Product
{
    public interface IProductService
    {
        /// <summary>
        /// 个人用户审查设备是否登记在产品库
        /// </summary>
        /// <param name="imei"></param>
        void PersonDeviceInProductCheck(string imei);


        int Add(ProductRequestDto productRequestDto);
        ProductDto Get(string imei);
        PageableList<ProductDto> GetList(DeviceType? deviceType, LifeStatus? lifeStatus, string model,string accountCode, string imei, DateTime? start, DateTime? end, bool desc, int index, int size);
        bool IsExist(string imei);
        ProductDto UpdateBaseInfo(ProductDto dto);
        int UpdateBuyInfo(ProductBuyInfoDto dto);


        long Delete(string imei);
        long DeleteList(List<string> imeiList);
    }
}